/* 
 * File:   Server_Base.h
 * Author: kisme
 *
 * Created on May 20, 2010, 6:48 PM
 */

#ifndef _SERVER_BASE_H
#define	_SERVER_BASE_H

#include <fcntl.h>
// printf..
#include <stdio.h>
// exit..
#include <stdlib.h>
// bzero..
#include <string.h>
// errno
#include <errno.h>
// setnonblocking
#include <fcntl.h>
// write()...
#include <unistd.h>


enum SERVER_RETURN_STATE
{
    SERVER_DEFAULT_SUCCESS = 1,
    SERVER_DEFAULT_FAILED = -1,
    SERVER_PROCESS_QUIT = 2
};

class Server_Base
{
public:
    int setNonblocking(int sockfd);
};


#endif	/* _SERVER_BASE_H */